using System.Collections;
using System.Collections.Generic;
using Unity.VisualScripting;
using UnityEngine;
using UnityEngine.InputSystem.Composites;

public class TeleportPoint : MonoBehaviour, IInteractable {
    
    public SceneLoadEventSO loadEventSO;    // 场景加载事件的SO
    public GameSceneSO sceneToGo;           // 要跳转到的场景
    public Vector3 positionToGo;            // 跳转场景后角色的初始位置
    
    public void TriggerAction() {
        Debug.Log("传送");

        loadEventSO.RaiseLoadRequestEvent(sceneToGo, positionToGo, true);
    }
    
}
